import Layout from '@/layout'

const mechanismLayout = {
  // alwaysShow: true,
  path: '/mechanism',
  component: Layout,
  redirect: '/mechanism/school/list',
  name: 'mechanism',
  meta: {
    title: '机构管理',
    icon: '分校管理'
  },
  children: [
    {
      path: 'school',
      redirect: '/mechanism/school/list',
      component: () => import('@/views/mechanism'),
      name: 'school',
      meta: { title: '校区管理', noCache: true, icon: '分校管理' },
      children: [
        {
          path: 'list',
          hidden: true,
          component: () => import('@/views/mechanism/list'),
          name: 'mechanismList',
          meta: { title: '校区列表', noCache: true, activeMenu: '/mechanism/school' }
        },
        {
          path: 'add',
          hidden: true,
          component: () => import('@/views/mechanism/add'),
          name: 'mechanismAdd',
          meta: { title: '新增分校', noCache: true, activeMenu: '/mechanism/school' }
        },
        {
          path: 'edit',
          hidden: true,
          component: () => import('@/views/mechanism/edit'),
          name: 'mechanismEdit',
          meta: { title: '编辑校区', noCache: true, activeMenu: '/mechanism/school' }
        }
      ]
    },
    {
      path: 'framework',
      hidden: true,
      component: () => import('@/views/mechanism/framework'),
      name: 'framework',
      meta: { title: '组织机构', noCache: true }
    }
  ]
}
export default mechanismLayout

